/**
 * 
 */
package com.zte.claa.inficombo.csa.app.service.persondev.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zte.claa.inficombo.csa.app.dao.mysql.impl.PersonJobDevMapper;
import com.zte.claa.inficombo.csa.app.service.persondev.PersonJobDevService;
import com.zte.claa.inficombo.share.model.persondev.PersonJobDev;
import com.zte.claa.inficombo.share.model.persondev.PersonJobDevQryCondition;


/**
 * 数据库访问服务 
 * @author zhanghao
 *
 */
@Service
public class PersonJobDevServiceImpl implements PersonJobDevService {
	
	@Autowired
	private PersonJobDevMapper mapper;
	
	/* (non-Javadoc)
	 * @see com.zte.claa.inficombo.app.framework.service.persondev.PersonDevService#queryByDev(java.lang.String)
	 */
	@Override
	public List<PersonJobDev> queryByDev(String deveui) throws Exception {
		return mapper.selectByDeveui(deveui);
	}
	
	@Override
	public PersonJobDev queryByKey(String deveui, String personid) throws Exception {
		return mapper.selectByKey(deveui, personid);
	}
	
	
	@Override
	public List<PersonJobDev> queryByPerson(String personid) throws Exception {
		return mapper.selectByPerson(personid);
	}
	

	/* (non-Javadoc)
	 * @see com.zte.claa.inficombo.app.framework.service.persondev.PersonDevService#queryByCondition(com.zte.claa.inficombo.app.model.persondev.PersonDevQryCondition)
	 */
	@Override
	public List<PersonJobDev> queryByCondition(PersonJobDevQryCondition cdt) throws Exception {
		return mapper.selectByCondition(cdt);
	}

}
